#!/bin/sh
set -ex

mkdir -p bin dist
if [ -e ./scripts/"$1" ]; then
    ./scripts/"$@"
else
    exec "$@"
fi

if [ "$DAPPER_UID" -ne "-1" ]; then
  chown -R $DAPPER_UID:$DAPPER_GID .
fi